package com.dxx.cloud.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dxx.cloud.admin.mapper.GoodsScanMapper;
import com.dxx.cloud.admin.module.entity.GoodsScanEntity;
import com.dxx.cloud.admin.service.IGoodsScanService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 扫码商品表 服务实现类
 * </p>
 *
 * @author dh
 * @since 2025-06-06
 */
@Service
public class GoodsScanServiceImpl extends ServiceImpl<GoodsScanMapper, GoodsScanEntity> implements IGoodsScanService {

    @Override
    public GoodsScanEntity detailByBarCode(String barCode) {
        return getOne(new LambdaQueryWrapper<GoodsScanEntity>().eq(GoodsScanEntity::getBarCode,barCode),false);
    }
}
